home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 3
/
Aminet 3 - July 1994.iso
/
Aminet
/
dev
/
c
/
AmigaDate.readme
< prev
next >
Wrap
Text File
|
1994-06-27
|
1KB
|
45 lines
Short: Outputs "(dd.mm.yy)" Useful in Makefiles
Type: dev/c
Uploader: too@cardhu.cs.hut.fi
Author: Tomi Ollila <too@cardhu.cs.hut.fi>
This program Outputs SAS/C AMIGADATE and DICE COMMODORE_DATE style date string
This is most useful in Makefiles, where one can define preprocessor strings.
GNUMakefile example:
#
# Amigadate GNUMakefile example. (You must have amigadate compiled by now ;D)
#
AMIGADATE= $(shell amigadate)
MAKE= gmake
CC= gcc
CFLAGS= -v -O2 -D__AMIGADATE__='"$(AMIGADATE)"'
LFLAGS= -nostdlib -s
AmigaDate: amigadate.c
$(CC) $(LFLAGS) -o $@ amigadate.c
#EOF
This program is re-entrant and can be made resident. Perhaps the easiest way
to do this is to enter `protect amigadate +H' but this may not work with
future OSses.
Tomi Ollila
too@cardhu.cs.hut.fi
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
332 269 18.9% 31-Mar-94 18:49:46 AmigaDate
782 459 41.3% 31-Mar-94 18:49:30 AmigaDate.readme
4455 1261 71.6% 31-Mar-94 18:50:28 amigadate.c
-------- ------- ----- --------- --------
5569 1989 64.2% 31-Mar-94 23:39:28 3 files